import request from '@/utils/request'

export default {
  getChildList(id) {
    return request({
      url: `/getChildSubject/${id}`,
      headers: {
        isToken: true
      },
      method: 'get'
    })
  },
  getPage(countPage, pageSize) {
    return request({
      url: `/getChildSubject/${countPage}/${pageSize}`,
      headers: {
        isToken: true
      },
      method: 'get'
    })
  }
}

export function getClass(url,query){
  return request({
    url: '/course/getList'+url,
    headers: {
      isToken: true
    },
    method: 'get',
    params: query
  })
}
